add warpper for read function