preprocessor: add optim option to osr, #779