creating queuewatcher control code, fix error in logger