change signature of import fuction, cfg first