import res_config in models __init__