added _types.h and _constants.h