logic for optimizer to avoid inling recursive functions; disable the optimizer for now anyway