network: some cleanup
worker: Firefox compatibility