make application key an optional parameter to keep backwards compatibility