modified terminal creation