split out scripts for producing figures