added logger and message to commands