format and optimize imports