add option to install for different platforms ; bug fixes