added a simple module manager; fixes #1