add errbit, fix production url direciton