allow open by filename, for test.