ugly fix for duo compatibility