needed for tests