added dependency functions in execute_command
added dependency functions