don't need to import copy in blocking
update optparse section to get logging working properly