added file backup and fixed install dependency