resolve import, reformat code