modifications to ensure chemcheck compiles as advertised