api and app work