init solver correctly in main