minimization and special window fixes