Adding global identity setting

see issue #6