improved malloc stability :D