add functiono to mod files.