script enhancements