curry some functions so that the config gets easier