feature #5157, fixing access right
clean unused code