add errors and logs