this probably doesn't work for partial reloading if they have changed
okay, this is probably very broken now