add --dev flag to keep debug logging