try direct url connect first before falling back on echo