add 'internal' key and put it to use