using curl instead of wget for the GET part + cleanup logs and redirect them to stderr