implement get_realpath and hash table init