debug flag enabled
sys_gen bug fixed