[mod] move code into a module folder