add close support