added logs to control