switched over to native calls for encoding and decoding