adding the meat of the restriction checking..
--ckell