fixed createPin() and updatePin() after Http class changes