finish accounts management API, refs #1