general cleanup from PR comments
completely removed remove_publish_dir