add more debug printouts when memory gets low
fix launch