- adapted to libsnapper change