refactor code
add workaround for proguard of jgroups