server handler for post defined