improved enabling of script events for control script