whoops, this is old. I changed it to use a config options struct.