really fixed all the errorcodes properly.