make ruby selection smarter and some path changes