implemented helper for redis scripting