LastFM edit

split some program logic