ports and hashtable functions updates.