add event fullness checking
add capacity check for window