fixed a bunch of errors - subsites are now pretty much working