history can now be save in file and load from file options load environ error class are now used some fixes