subscribed to script events correctly