segragate API engine implementation