a stab at factories in allow and deny