moved curl class to a separate library