adding ndarray and starting read support