add an application specific callback