updated command with the newest checks