Fixed cli on windows and new hash function