added addchinefile method