fix some logging and module bugs