added method to indicate whether initialization is completed