XD-2404 prevent unnecessary files from being published