generalizing config