update some files
fix errors if remote branch does not exists