fixed server to work with ubuntu 64 bit