mlk update
done the main error handling structure