needed until a nicer way is proposed.