div. Bugfixes, restructure log.fun