adding a file an updating the current file