fixes to IDP scripts per Bart Bogaerts