used in tests
