added simple mode, auto terminal detection, settings. Unstable. may not work as intended