replace 'require' calls