removed AutoClose (i don't use it)