removed lingering sys.exit used for debuging