add logging and setting options in spoof.py