update run script
check invalid handler