refactor timebase is done and it compiles