cleanup bid parsing