use global variables for admin_apikey between api_key and global_setting for successfull first run