fix api read issues