first working version: tested at LLR