still debugging script problem