initial implementation for https://github.com/TrigerSoft/jaque/issues/1