fixed syntax errors
added missing authhandler parameter