enhanced mm and postponed rewrite
cleaned up code
compositor work - lods of spaghetti here