add checks for invalid values and handlers for errors
bump version