when bundling, we should use #with_clean_env