added primitive error handling
removed test output