implemented open. unable to test without close