improve sample service API
progress parameter handling