bugfixes and bashrc for root