added first draft of 'trace' support (built on 'shared')