updated api and added log out base