improve parameter parsing in commands