replace hash functionality with version from 1.5 (2014-11-25), weak hashing algorithm but it will do for now