added refs, and config file options