a simple curl OO wrapper