basic npe chek
logging needs review; version update for now.