re-added debug_timer_t
fixed some ruby bugs