fix build for most recent nightlies by namespacing enum values
fix build for most recent nightlies by namespacing enum values
make program read from arbitrary buffer