added indexfile
reverting file add
updating filepath
using buffer