resolving dependency on request object