cleans up router