added discriminator for different fragments