flexible queueing system for running calculations