fix --maxspeed bug and add curl constant