adapted the name validator to existing package names