fix a crash
a convenient function
fix default active mode for active open
more tests