Big ass code dump, server is now starting properly