fixing bug in install functions