prn nestedness scripts