added action logging functionality