fix import for FieldRef
remove unused imports, sort imports