trace read and write scripts