don't replace file in case, that for file was any final added
added simple equals with check if arguments were changed