readded autoclose