add errors variables and change the name of 'lir' folder