manual perm check almost worked