only initialize mock if it's loaded