deprecated updateslugs, changeChildParents better named, and does not use a global anymore
also fixes #908