implemented the running in the (custom) terminal;