begin coding of SEL ... some fixes