synchronized access to get()
adding logging