fixed issue with getRole()
added some loging