updated how the selection function is defined in the configuration file and on the command line