error codes and warnings added