Semiworking server (from goleg/d projects)
Not working correctly yet