Moves basic pickling infrastructure to cmd