added logger and several constants