added arg when registering app manager function