added a cheeky debug message flag