main parts tested.start removing obsolite code