splitting resource part from host part.