added error messages logs;