move stuff out of shared and into physics library