high level api open & close