change signature to be more java servlet like