change default interval and fix terrible #define
add special case for critical encoding