extract debug option to command line arg -d
only print error object in user import