hacks to get select working