config: an else if instead of 2 if stmnts