moved rest of Main into Converter