start end to prevent hanging