added support for passing consumer key