added a post handler and tons of other stuff. What a mess