purge old files and avoid port mismatch