changed dry run logic so it doesn't leak json objects