added MegaPipe. minor design modification