some mods from ct9000_freak timer, emc