fixing issues with using pundit