added check for RUN_INSTALL flag