updated server to parse inputs (and handle exceptions) - edge testing still required