refactored app callable