[api] fix group creation
more ruby 2.0
[api] fix groups