annotated script to store data to the filesystem