stack logging fixed