Revert "refactors buildings IO file one again, to handle sockets properly"
Previous solution made more sense

This reverts commit d011c8a50022a861633203292094b1faaea2cf02.