made activation functions serializable