sendCycle to fix #3 (needs testing)
read indexGroup from handle first to fix #6 (needs testing)
code from reijosirila to support string (#7) (needs testing)