added ability to generate api keys