move imports to top, fix indents