api/logs fixes