config as separate function