fixes to make web code run again, looks a little prettier.