only generate local definitions
that should probably be deleted
merge locality branch