added the -p option for overriding the config