adding file to chain