remove mode from opts