improvements: skip some variables if runned from another terminal. code optimization