config and window events modified