added hostname hook