added support to remove the subroutes