added negative value support to TAP pre save hooks