add screen capture and logging