bad practice, return data from request handlers and output to web from server