added option 'with_key'