added line helper and handle fire on box exit