improve response handling, add semicolons