added POST method to server handler