convert from a single file