error handling is completely missing