changed parsing formula to handle beautiful soup not being the same between osx and ubuntu