adds convert_file method.