fix accelrate problem and add roles