clean up log messages, add upload limit, remove writeresponse