add some logs for debugging