Adapt for sea.js