added a param to say which interface to check on