added the config function