added logger to scripts