fixing Makefile and registering PatternRunner callbacks