phasing mario-specific code out of framework ...in progress
d