Improved curl lib