this is a prerequisite for #4235
this is a prerequisite for #4235