adding more transaction logging