several parallel_clean() fixes and others