- simplified code
- use newer libsnapper interface