add config and permit return value