allnodes.h: use enum for commands