first version passing the smoke test