read and write data to firm works