adding accept & refuse handlers to example to test denied handling