creates terminal instances in directories.