allow stack app to take config as a constructor argument