nicer way to do prefix matches