getCommandAndAddress