added application hook example