added code for service account data extraction