making the ./install command work and introduccing conditional imports