modify config handler for new format