Fixed #187, Customization improvements on EndpointConfig.cs