initial implementaion of perseidsauth for saving