passing config as paramets