add baserul to java scripts, etc.