removed useless encode/decode (thx olasd)