adapt rest server to class style merger