added v2 auth handler