first draft of Logalog module