adding api for listing and filtering