attempt to handle exceptions on windows a bit better
rename ReferenceFrame methods to be clearer