renamed role field to name