convert_and_organize script more or less complete