return int, not string
clean up created groups after testing, and correct parameter order