modified jbs authhandler