added dof scripting feature