modules.thumb: refactoring