fixing various fxns for MetaMapR