just replace with SG_DEBUG("entering")?