fixing AppFunc: work in progress ...