worked out local install function a bit more.
worked out local install function a bit more.