changed terminal program function, started making window rules better