Use resources instead of strings for `$location`s and `$server`s. fixes #10