add list role function, remove some debug logging