moved logging to dynamodb