cleanup sub_load