setp_hook to allow parameter fixup after setp