code dump

dumped as-is