implement get credentials