mercury works locally and on cloud