using new API for rest services