added close option for the commands. clone problem persists