install rule updated and externs added