first version, to be tested at sacla