make poll interval configurable. closes #7