add setting file handling
improve get_last_torrent