append exist file check logic #49