some terrible copy-paste hackery for restricted