zpop using lua scripts