changed install script and fixed bugs in importer