refactor getOrFetch func
bootstrap update
fix mongo config and minor cleanup