switched to passing config as a parameter