fix variable name
make mux operators return their final value, making them legal within parens, also add better error handling