add defaultPath parameter.
allow simple interface definition with array.