add more flexibility to defining activations