implemented a nice POST handler.