bin: clean up driver code