first attempt to write a conversion utility