move some disAPI functions to ideasfunc2.php