added url arg, removed host and path args
fixed defined helper