removed timeapi and wrote my own parsing routine