added dof scripting feature 2