move graph layout to worker