added swap interface
added swap interface