refactoring parseBSMX and mashprofiles