modified request method to accept url object