bug fixed: incomplete constructor in endpointImpl