add start code for app callback