a couple bug fixes and tinkering with the install script