added close command