get rid of priority in selector.
 added idle detector