add minimizing option (default setting is true)