NOTE: needs to be run on local server, web editor worker seems to run in an isolated context without some variables