refactored out PostHandler
refactored out GetHandler