added param "-i" for defining an interface