wrapping leda requires in pcall