fix dedicated shell for perspectives and ruby console/irb
cleanup some commented old code