first shot at drop-in replacement mode: implemented pickle mode