simplified dramatically and made the "install" script shorter. Improve further later