finished remote api handler