moved setting the comp type on new docs before loadrequires