[FOLD] fix local_endpoint