selector loop finally seems to work. not sure what the hell is going on.