move the potentially time consuming computation to a background thread
to handle the problem reported in mantis 3840