#102 first untested version, declares only user defined handlers.