add mutex lock to access aws
change version