asserts replaced with ET_ASSERT and ET_FAIL