the core of mixjs