add logger object into all the classes;
module_select_loop works but in a really ugly way;