here, ensure we only attemp to compile the model once.