add stub config generation based on apikey