added script-generation functionality for more operations