add enums for algorithm and field type