add confirmation deadline for offerings and fix some bugs