initial reimplementation of pulsedb_format is working