now supports list and listAll methods