make this work with Duo.js