updates to library for depth-dependent psi