script lib fix from earlier refactoring