scripts for PRAGMA local tasks