tmp should be completely ignored, apart from what is specifically added