more code and command handling for looking up arrays for each command.