adding some functions from my old bashrc