permit rules loader kinda works