works for hadoop-1.0.4