watch out for pkg.main.js