save and restore colours
remove debugging output