rewrite using simplexml, tidy, straighten out mondays