tons of fixes to remove generated files as well as point to in-memory database