allow function to take request object as argument