changed quit to throw when unsupported platform