added data printer to API