replace dependency on assert in crt