optimize imports and remove unused dependencies