remove stuff made obsolete with Popen