spilt out resource into source_host and source_path