fix case when multiple packages are in a single file; write test for it
tidyall