moved Main method into converter