made some changes in simpleServer