Bug fix from refactoring (refactoring without static type checks is the hell :D) and check config integrity on startup