replaced by mock implementation