automate detection of scriptlet errors?