methods for generating response objects
clean up a bit