checking for roles before running them