support system.ondemand from es6