made command execution and api