fixed logging issues
this should be fully standalone now.