read activation function from preferences table. fixes #847