added role_mask to database. When i echo the roles they seem to do what expected. It shows the correct role that i assigned, but the rules are not applied to the roles yet.
Added echo of roles to keep track of what user has what role, this does work.. Which is strange