removed Util and created various encoder/decoder methods