fix bitbucket auth
small optimization