fix typo
add try catch
add load history and done ee encrypt orders
refactor code