addr len not hardcoded anymore