first draft for duojs support