changed rmaset.h to accept variable filename