IDEX-456: add get snippet method
Merge with master