fixed import error when running installed init script