add server_impl

Copied from server class.