writer example and support for constraitns in handler definition