By contrast , where monasteries had provided grammar schools for older scholars , these were commonly refounded with enhanced endowments ; some by royal command in connection to the newly re-established cathedral churches , others by private initiative .