added proper leave. ony have timeout left