use config file for window duration