added body and pathurl functions