cleanup of radcode check