add hash detection