vars are now func, no need for them
use pipe constants
unit tests to verify cmd bits according to spec
make cmd bits constants