setting up keys if not existing