lib: split stuff into subfolders