add debugging logs to webapp