use the public cube API in engine.genchallenge