created generic save() function (includes whoami)