scripts for paper 4