remove duplicate exec_command function and roll tokenize into primary
exec_command function