updated to support last requests version