without this, c++ logic does not get loaded correctly