add duo support

/cc @ianstormtaylor