still more fixes to disallow function