should be static, but it used by test files