fixed app to respect new api endpoints