add gen_class_init
dodge Math.floor inline issue