cave man debugging why queue gets empty too soon?