better interface detection if not specified