add length checks and comments to proxy LCP parsing