uses path from registry, some jslint and small stuff