script: binstate support