update to use the new server
take pixel from centre
fix a couple bugs