-fixed bugs in shell code, related to startup sequence and rcfile in particular