using newer config.*; bugfix for poll loop