move use statements where they are needed