refactor execute command on shell and render block