service: add attribute get function