initial capture and window implementation