fixed misnamed var, added ability to capture stderr from running lli