fixed time parsing
refactored code, added resclient to create dummy data