preparation for shell command