added pickle close