updates format and imports for models