add some code for properly tearing down, reloading and removing interfaces