working on "sorting" of scan params