added more logic to installer script and started to fix major bugs