fix for missing fields during decoding
added support for old ptr and beta versions