switch to swig, add env dependency to master.html