move some common stuff to bashrc-base