fix simcommands and null return