support addselfprovides option
rename parse_primary to parse for consistency