mode support scripting