empty pile dissapearing, various fixes