added try/except block and changed default role