add sanity checks for getCurrent and getCurrentSelection