added more logic to the converter controller