Clean dev

work in progress for adding `selection` functionalities.