pass spec through compile before call