lots of type stuff and footer fix