a bit of bug hunting and rewrites in OrdenSalida related functions