fix logs and perms