fix obsolete require