ref debug messages