added features_mask and roles_mask