add two getBy* fetching functions