shell install functions and other fixes