move some of the hardcoding into the program.h, still need to remove
the HACKs though