start of API and ACP managing keys