save relationship to file