move setting nb.kernelselector inside kernelselector itself