fix gc related crash (fixes #2), and supply latency in correct units