add loglet logging
code cleanup