add some logs to track behavior