not in love with having a config object but I have no better idea, +1