Major reorg of bashprofile