turn kuyruk into a context manager