need to handle half-close correctly
typo