reconfigured local install function