refracting our config code