updated with jsnbt changes