cleaned up post/put handlers