add arrays and role attributes