improved error reporting for command run in stone
just reordering functions