some major changes to run lingua independently