fixed some of the installation code