foundation for custom script execution