added missing mode parameter
Merge pull request #2 from nearform/fix_interface

added missing mode parameter