adding asserts that log if asserts are disabled