merged new event script calling code from ronnnie