minor changes for including reference flag