add validation for constructor
add api key