addkeys api method fixed