update: fixed some small issues with density fixing. successful testing.