fixed syntax error
added missing extend
removed config injection from request