finished a few more functions in execute-command.c