utility function for automatic link.domain saving. closes #24