Works in windows, broken in OSX I'm sure