rework url builder
create a gethostname method
use new method
rm old comment