move import logging to the top... THIS BREAKS THINGS