moved LevMar, inputs and outputs to threadlocal