gomagic is a middleware magicbox