fix script/console commands for new infrastructure