reformat files, replace imports with relative ones