working on object structure
adding register for api key function