few small fixes in scripting commands