def find_syncs(config, sync_name=None):
    """ return list of syncs 
    
    if sync_name specified return a list with sync equal to sync_name
    if sync_name is None it return list off all syncs

    """
    if sync_name is None:
        syncs = config['syncs']
    else:
        sync_name = sync_name.lower()
        syncs = [x for x in config['syncs'] if x['name'] == sync_name]

    return syncs