replaced auth manager with app instance