utils, helpful code for hadoop