added check for apikey and set (empty) default options