somewhat crude $/# switching with privilege