added a simple read only API