changed work with auth_helper