codes and code types, various small improvements