started to implement api key check