factored out playlist importing from UI and filereading