curl workaround