refactored to use ConfigParser variable interpolation