added support for crypto and user hash