more cplusplus hackery