minor updates, trying to fix how terminal is handled