added recursion_count to app_call