store direction in lowest mode bit
store way id in name