smart selection v0.1

there must a lot of bug in the smart selection part