Undertakings: how to avoid the traps