adding stack to log