update dependency
change encoding algorithm