added check in installscript