stop using constants, use a config:: array to pass globals