fix some debug statements
check if __func__ is available