add more necessary unistd clear()s