moved all #defines into ht.h