played with tmux colors, made funcs reentrant