based on massive changes to old version of ymaster

flat mcs