create pt directory and api key file