finish API for second app