errors configurtion and encaptulation