def chalNameToChalID(configFile,chalName,defaultValue=None):
    """
    returns chalID for a given chalName
    """
    v = defaultValue
    try:
        v = configFile[chalName]['chal_id']
    except:
        pass
    return v