added rendering to response and mapper