add timer and mps_gen framework