added trigger for external script to the wrapper