adds webworker support