remove some logs, unset variables