optimize hash code and move get_hash to get_version & get_sys_info