added auto-refresh feature. closes #6