add api key to private file