reworked the select menu generator. much better!