getting diagnostic mode to work