added append to file script