switch away from magiconf style config
change the way we generate the hash and use constants