permit passing in an adapter through the config