Fixes for localhosting (on osx, which wasn't working until this point)