dump dep versions and clean up imports