some more dumb hardcoding, remove all these constants and make them part of the program definition.