add code snaps from vrael