log in function and merge files.