fixes for mlngs
shared ptrs in pde
add tuple