command can take a hash or string as input