added maximize-restore support