Large fix to update module dependencies

Fix crashes due to outdated package references.

Fixes: #1