rework rdz_determine_dorun()