add cdi support for server