made a few changes to install mode