grouped some methods into modules to extract them later into a class