removed debugging and implementing send Command again if hash fails