update to change the algo and encoding